﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Empires.CRL.DataContract;

namespace Empires.RAL.Access
{
    public interface ICompanyLinksAccess
    {
        List<DefaultDataPack> GetLinksList(string copname,int size);

        int AddItemForMainInfo(MainInfoDataPack model);

        int UpdateItemForMainInfo(MainInfoDataPack model);

        int DeleteItemForMainInfo(MainInfoDataPack model);

        /// <summary>
        /// 获取主页展示信息的广告图片和描述 DefaultDataPack:{INFOPHOTO,PHOTOTITLE}
        /// </summary>
        /// <param name="copname"></param>
        /// <param name="take"></param>
        /// <returns></returns>
        List<DefaultDataPack> GetCompanyMainInfo(string copname, int take);

        List<DefaultDataPack> GetCompanyMainInfoItem(string copname, int bid);

        int EditCompanyMainInfoItem(int id, string copname, bool isMain, string photo, string title, string link, ref int refencesId);
    }
}
